﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Mvc;

namespace FlickrPortfolio.Helpers {
    public static class HtmlHelperExtension {
        /// <summary>
        /// Builds an URL from the Content folder
        /// </summary>
        /// <param name="helper">Extension to the HtmlHelper class</param>
        /// <param name="fileName">The file name of the resource</param>
        public static string FileUrl(this HtmlHelper helper, string fileName) {
            return VirtualPathUtility.ToAbsolute("~/content/" + fileName);
        }
    }
}
